﻿<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
  <xsl:output method="xml" indent="yes"/>

  <xsl:template match="AllPretendAnnouncements">

    <div style="width: 800px;">

      <div style="width: 798px;" id="AnnouncementsHeader">
        <center>
          <b>
            <u>
              <h1>
                <font color="red">Announcements Using XSL from a document library</font>
              </h1>
            </u>
          </b>
        </center>
        <br/>
      </div>

      <div id="HeaderRow">
        <div id="AnnouncementTitle">
          <u>
            <h2>Title</h2>
          </u>
        </div>
        <div id="AnnouncementLocation">
          <u>
            <h2>Location</h2>
          </u>
        </div>
        <div id="AnnouncementDescription" >
          <u>
            <h2>Description</h2>
          </u>
        </div>
      </div>

      <!-- Iterate through each individual announcement. -->
      <xsl:for-each select="AnAnnouncement">
        <!-- <xsl:sort select="location"/> -->
          <div id="AnnouncementTitle">
            <xsl:value-of select="title" />
          </div>

          <div id="AnnouncementLocation">
            <xsl:value-of select="location"/>
          </div>

          <div id="AnnouncementDescription">
            <xsl:value-of select="description" disable-output-escaping="yes"/>
          </div>
      </xsl:for-each>

    </div>

  </xsl:template>

</xsl:stylesheet>
